package com.offcn.dao;

import com.offcn.pojo.Course;
import com.offcn.pojo.CourseDetail;
import com.offcn.util.PageUtil;

import java.util.List;

public interface CourseDao {
    Integer queryAllCount(String search);

    List<Course> queryCourseByPage(PageUtil<Course> pageUtil, String search);

    int deleteCourses(String cids);

    int addCourse(Course course);

    int updateCourse(Course course);

    int addDetail(CourseDetail courseDetail);

    Course queryUserById(Integer cid);

    List<Course> queryAllCourse();

    List<Course> queryByCourseByType(Integer type, Integer limit);

    int queryCountByType(String courseName, String courseType);

    List<Course> queryByCourseByTypeLimit(PageUtil<Course> pageUtil, String courseName, String courseType);

    Course queryCourseById(Integer cid);
}
